package com.sss.hloster0304;

public interface Stack {//栈接口的代码
//把数据元素压入栈--进栈
	public void push(Object obj) throws Exception;
	//获取并删除栈顶数据元素
	public Object pop() throws Exception;
	//获取但不删除栈顶数据元素
	public Object getTop() throws Exception;
	//判断栈是否为空
	public boolean notEmpty();
}
